<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <div id="app">
        <h3>选择兴趣爱好</h3>
        <input v-model="list" value="sing" type="checkbox">唱
        <input v-model="list" value="jump" type="checkbox">跳
        <input v-model="list" value="rap" type="checkbox">rap
        <input v-model="list" value="basketball" type="checkbox">打篮球

        <h3>以下绑定非数组，就是拿选中状态</h3>
        <input type="checkbox" value="1" v-model="chk1">1
        <input type="checkbox" value="2" v-model="chk2">2
        <input type="checkbox" value="3" v-model="chk3">3
    </div>

    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                list: [],
                chk1:'',
                chk2:'',
                chk3:'',
            }
        })
    </script>
</body>
</html>